package com.pzl.service.impl;

import com.pzl.dao.UserDao;
import com.pzl.domain.User;
import com.pzl.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * UserServiceImpl class
 *
 * @Author panzhenglei
 * @Date 2019/6/14 7:02 PM
 */

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findAll() {
        return userDao.findAll();
    }

    @Override
    public User findByID(Integer id) {
        return userDao.findByID(id);
    }

    @Override
    public void update(User user) {
        userDao.update(user);
    }
}
